package com.sgzn.sgpay.service.tcp.model;

import lombok.Getter;
import lombok.Setter;
import org.hibernate.validator.constraints.Length;
import org.hibernate.validator.constraints.NotBlank;

/**
 * Created by xxjs-gd-llf
 * DATETIME:2018/4/11 23:18
 * Description: 客户端登陆申请注册码
 */
@Setter
@Getter
public class TcpLoginCheckRequest {
    private  String beginCode;

    private String commandCode;

    /**
     * 设备ID 4字节
     */
    @NotBlank
    private String deviceId;

    /**
     * 登陆认证码16字节
     */
    @NotBlank
    private String checkRegisterCode;

    @NotBlank
    private String checkSumCode;

    private String endCode ;

    @Override
    public String toString(){
        //根据协议规范重载toString方法
        return " beginCode="+ beginCode+
                " beginCode="+ commandCode+
                " deviceId="+ deviceId +
                " checkRegisterCode="+ checkRegisterCode+
                " checkSumCode="+ checkSumCode+
                " endCode="+ endCode;
    }


}
